<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ include file="/WEB-INF/view/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>系统字典信息</title>
	<meta name="decorator" content="default"/>
	<%@ include file="/WEB-INF/view/include/dialog.jsp" %>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#value").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/sys/sysdict/">系统字典列表</a></li>
		<li class="active"><a href="${ctx}/sys/sysdict/form?id=${sysdict.id}">系统字典${empty sysdict.id?'添加':'更新'}</a></li>
	</ul>
	<form:form id="inputForm" modelAttribute="sysdict"
		action="${ctx}/sys/sysdict/${empty sysdict.id?'save':'update'}"
		method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<tags:message content="${message}"/>
		<div class="control-group">
			<label class="control-label">键:</label>
			<div class="controls" style="margin-top: 5px;">
				<form:input path="dkey" htmlEscape="false" maxlength="200"
					class="required" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">值:</label>
			<div class="controls" style="margin-top: 5px;">
				<form:input path="dval" htmlEscape="false" maxlength="200"
					class="required" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">群组:</label>
			<div class="controls" style="margin-top: 5px;">
				<form:input path="dgroup" htmlEscape="false" maxlength="200"
					class="required" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">描述:</label>
			<div class="controls" style="margin-top: 5px;">
				<form:input path="description" htmlEscape="false" maxlength="200"
				 />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">排序:</label>
			<div class="controls" style="margin-top: 5px;">
				<form:input path="sort" htmlEscape="false" maxlength="200"
				 class="required"/>
			</div>
		</div>
		<div class="form-actions">
			<input id="btnSubmit" class="btn btn-primary" type="submit"
				value="保 存" />&nbsp; <input id="btnCancel" class="btn" type="button"
				value="返 回" onclick="history.go(-1)" />
		</div>
	</form:form>
</body>
</html>